package com.mycompany.project.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class ImageViewer implements EntryPoint {
	private Button clickMeButton;
	public void newGame()
	{
		
		
	}
	
	public void onModuleLoad() {
		RootPanel rootPanel = RootPanel.get();

		clickMeButton = new Button();
		rootPanel.add(clickMeButton, 278, 485);
		clickMeButton.setSize("148px", "27px");
		clickMeButton.setText("New");
		clickMeButton.addClickHandler(new ClickHandler(){
			public void onClick(ClickEvent event) {
				//  Window.alert("Hello, GWT World!");
				if(Window.confirm("Do you really wanna quit your current game and start a new game?")) {
				// TODO Auto-generated method stub
				newGame();
			}
				
			}

			
		});
	}
}
